Use description instead of shortnmae when -Sn.
authorrobertl <robertl>
Sun, 11 Oct 2009 01:50:09 +0000 (01:50 +0000)
committerrobertl <robertl>
Sun, 11 Oct 2009 01:50:09 +0000 (01:50 +0000)
lmx.c

diff --git a/lmx.c b/lmx.c
index 69b041a16edcb1c9f61cb5cff74e3075c35e81f6..f40762b78b15f52174fed9a6e2b0837c53f84473 100644 (file)
--- a/lmx.c
+++ b/lmx.c
@@ -77,7 +77,7 @@ lmx_print(const waypoint *wpt)
 {      
        gbfprintf(ofd, "    <lm:landmark>\n");
        if (wpt->shortname) {
-               lmx_write_xml(4, "lm:name", wpt->shortname);
+               lmx_write_xml(4, "lm:name", global_opts.synthesize_shortnames ? wpt->description : wpt->shortname);
        }
        if (wpt->description) {
                lmx_write_xml(4, "lm:description", wpt->description);